function MinePublishConfigController(analyseId){
	var publishJobService = new MinePublishJobController(analyseId);
	var publishService = new MinePublishServiceController(analyseId);
	this.initOrShowTab = function(){
		$('#publish-mine-layout').hide();
		$("#publish-mine-config").show();
		if(!this.tab){
			$('#publish-mine-config').tabs({
				active : -1,
				activate: function( event, ui ) {
					if(ui.newPanel.attr('id') == 'serviceContainer'){
						publishService.initOrrefresh();
					}else{
						publishJobService.initOrrefresh();
					}
				}
			});
			$("#publish-mine-config").tabs("option", "active", 0);
		}else{
			$("#publish-mine-config").tabs("option", "show");
			$("#publish-mine-config").tabs("option", "active", 0);
		}
	}
	this.hide = function(){
		if(this.tab){
			$("#publish-mine-config").tabs( "option", "hide");
		}else{
			$("#publish-mine-config").hide();
		}
	}
	
}